package client;

import java.util.List;

import client.dtos.RepositoryFileDTO;
import client.dtos.RevisionDTO;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("search")
public interface SearchService extends RemoteService {
	
	List<RepositoryFileDTO> search(final String searchTerm, final boolean searchAnywhere);
	
	List<RevisionDTO> getMostRecentRevisionForFile(long repositoryFileID, int page);
	
	List<RevisionDTO> searchComments(String searchTerm);
	
	void hideRepositoryFile(long repositoryFileId);

}
